﻿@model Bibilioteca.Models.Ejemplar

@{
    ViewBag.Title = "Create";
}

<h2>Create</h2>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>Ejemplar</legend>

        <div class="editor-label">
            Cantidad de ejemplares a generar (Maximo 10)
            @Html.Hidden("MaterialId", ViewBag.MaterialId as string)
        </div>
        <div class="editor-field">
            @Html.TextBox("Cantidad", 0, new { type = "number", min = "0", max = "10" })
            @Html.ValidationMessageFor(model => model.Estado)
        </div>
        <p>
            <input type="submit" value="Create" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Volver al material", "Details", "Materiales", new { id = ViewBag.MaterialId }, null)
</div>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
